package com.yds.dubbo.tracing.consumer.action;

import com.yds.dubbo.tracing.api.HelloService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

/**
 * @author liuhongzhen
 * @date 2023/3/24 15:44
 */
@Component("annotatedConsumer")
public class HelloServiceConsumer {

    @DubboReference
    private HelloService helloService;

    public String doSayHello(String name) {
        return helloService.sayHi(name);
    }

}
